from django.urls import path, include
from rest_framework.routers import DefaultRouter

from news import views

router = DefaultRouter()
router.register('news', views.NewsView)

urlpatterns = [

    path('api/', include(router.urls)),
]